@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Open+Sans&display=swap');

.toplist-poker-compact__wrapper {
    margin: 40px 0;
}

.toplist-poker-compact__offers {
    display: flex;
    flex-direction: column;
    counter-reset: bm-toplist-poker-compact-offers-list;
    gap: 8px;
}

.toplist-poker-compact__offer.hidden {
    display: none;
}

.toplist-poker-compact__offer-inner {
    display: grid;
    padding: 18px 20px;
    border: 2px solid #101214;
    border-radius: 4px;
    background: #FFF;
    grid-template-columns: 170px auto 179px;
    grid-template-rows: auto auto;
    gap: 8px 20px;
    grid-template-areas:
    "logo head extra"
    "logo body extra";
}

.toplist-poker-compact__offer-logo-wrapper {
    position: relative;
    overflow: hidden;
    margin: -18px 0 -18px -20px;
    background: #101214;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    grid-area: logo;
}

.toplist-poker-compact__offer-logo-wrapper:before {
    background: linear-gradient(179deg, #1C1C1C 42.11%, rgba(28, 28, 28, 0.00) 99.51%);
}

.toplist-poker-compact__offer-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0D0E12 42%, rgb(0 0 0 / 0%) 100%);
}

.toplist-poker-compact__offer-logo-inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.toplist-poker-compact__offer-logo img {
    width: 150px;
    height: 72px;
    margin-top: 25px;
    object-fit: contain;
}

.toplist-poker-compact__offer-background {
    position: absolute;
    z-index: 0;
    bottom: -80px;
    width: 100%;
}

.toplist-poker-compact__offer-background img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.toplist-poker-compact__offer-label {
    position: absolute;
    z-index: 2;
    top: 5px;
    left: 5px;
    display: flex;
}

.toplist-poker-compact__offer-label:before {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 125%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    content: counter(bm-toplist-poker-compact-offers-list);
    counter-increment: bm-toplist-poker-compact-offers-list;
    text-align: center;
    color: #FFF;
    border-radius: 2px;
    background: #3D4155;
}

.toplist-poker-compact__offer-label-highlight {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 24px;
    margin-left: -2px;
    padding: 0 8px 0 10px;
    letter-spacing: 0.36px;
    text-transform: capitalize;
    color: #FFF;
    border-radius: 0 4px 4px 0;
    background: #21242E;
}

.toplist-poker-compact__offer-head {
    grid-area: head;
}

.toplist-poker-compact__offer-body {
    grid-area: body;
}

.toplist-poker-compact__offer-brand-name {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 150%;
    margin-bottom: 8px;
    letter-spacing: 0.36px;
    text-transform: capitalize;
    color: #404040;
}

.toplist-poker-compact__offer-title,
.toplist-poker-compact__offer-title p {
    font-family: "Lato", sans-serif;
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    line-height: 120%;
    display: block;
    width: fit-content;
    margin-bottom: 0;
    text-transform: capitalize;
    color: #060606;
}

.toplist-poker-compact__offer-title p {
    display: inline;
}

.toplist-poker-compact__offer-title img {
    vertical-align: bottom;
}

.toplist-poker-compact__cards-icon-before {
    margin-right: 6px;
}

.toplist-poker-compact__cards-icon-after {
    margin-left: 6px;
}

.toplist-poker-compact__offer-rating-review-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.toplist-poker-compact__offer-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toplist-poker-compact__offer-rating-star {
    width: 18px;
    height: 18px;
    background: url(../images/star-orange.svg) left top no-repeat;
}

.toplist-poker-compact__offer-rating {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    color: #060606;
}

.toplist-poker-compact__offer-rating span {
    font-size: 14px;
}

.toplist-poker-compact__offer-key-features ul {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
    list-style: none;
    gap: 2px;
}

.toplist-poker-compact__offer-key-features li {
    font-family: 'Open Sans';
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    padding-bottom: 0 !important;
    padding-left: 22px;
    color: #101214;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12' fill='none'%3E%3Cpath d='M7.14216 3.40781C6.3295 2.41031 5.63635 1.32114 5.07687 0.162525C5.04936 0.1152 5.00991 0.0759252 4.96247 0.0486256C4.91502 0.0213259 4.86124 0.00695801 4.8065 0.00695801C4.75177 0.00695801 4.69799 0.0213259 4.65054 0.0486256C4.6031 0.0759252 4.56365 0.1152 4.53614 0.162525C3.97659 1.32083 3.28345 2.40969 2.47085 3.40691C1.76587 4.27141 0.97506 5.06221 0.110561 5.7672C0.0760127 5.79537 0.0481672 5.83087 0.0290441 5.87114C0.00992112 5.91141 0 5.95543 0 6.00001C0 6.04459 0.00992112 6.08861 0.0290441 6.12888C0.0481672 6.16914 0.0760127 6.20465 0.110561 6.23282C0.97506 6.93781 1.76587 7.72861 2.47085 8.59311C3.28345 9.59033 3.97659 10.6792 4.53614 11.8375C4.56074 11.8883 4.59915 11.9311 4.64696 11.9611C4.69478 11.9911 4.75007 12.007 4.8065 12.007C4.86294 12.007 4.91823 11.9911 4.96605 11.9611C5.01386 11.9311 5.05227 11.8883 5.07687 11.8375C6.12408 9.66763 7.63482 7.75408 9.50245 6.23192C9.537 6.20375 9.56484 6.16824 9.58396 6.12798C9.60309 6.08771 9.61301 6.04369 9.61301 5.99911C9.61301 5.95453 9.60309 5.91051 9.58396 5.87024C9.56484 5.82997 9.537 5.79447 9.50245 5.76629C8.63804 5.06188 7.84724 4.27168 7.14216 3.40781Z' fill='%23101214'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top 6px left 2px;
}

.toplist-poker-compact__offer-cta-btn-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M16 12.5L8 18.2631V6.73682L16 12.5Z' fill='white'/%3E%3C/svg%3E");
}

.toplist-poker-compact__offer-cta-btn {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 800;
    font-style: normal;
    line-height: 1;
    display: flex;
    align-items: center;
    align-self: stretch;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: auto;
    padding: 0 18px;
    text-align: center;
    text-transform: uppercase;
    color: var(--bm-cta-button-color);
    border-radius: 24px;
    background: var(--bm-cta-button-background);
}

.toplist-poker-compact__offer-cta-btn:hover {
    text-decoration: none;
    color: var(--bm-cta-button-hover-color);
    background: var(--bm-cta-button-hover-background);
}

.toplist-poker-compact__offer-review-btn {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 150%;
    letter-spacing: 0.36px;
    color: #5B7F24;
    text-decoration-line: underline;
}

.toplist-poker-compact__offer-review-btn:hover {
    color: #101214;
}

.toplist-poker-compact__offer-extra {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    grid-area: extra;
    gap: 12px;
}

.toplist-poker-compact__offer-rakeback {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 8px;
    color: #404040;
    border-radius: 2px;
    background: #F6FFE8;
    gap: 4px;
}

.toplist-poker-compact__offer-rakeback span {
    display: block;
    color: #060606;
}

.toplist-poker-compact__offer-games-wrapper {
    position: relative;
}

.toplist-poker-compact__offer-games-subtitle {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 150%;
    position: relative;
    width: fit-content;
    padding-right: 17px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.36px;
    color: #404040;
}

.toplist-poker-compact__offer-games-subtitle span {
    color: #060606;
}

.toplist-poker-compact__offer-games-subtitle:after,
.toplist-poker-compact__offer-games-subtitle span:after {
    position: absolute;
    top: 2px;
    right: 0;
    width: 11px;
    height: 14px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14' viewBox='0 0 11 14' fill='none'%3E%3Cg clip-path='url(%23clip0_3474_543)'%3E%3Cpath d='M1.25 6.75L5.75 11.25L10.25 6.75' stroke='%235B7F24' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_3474_543'%3E%3Crect width='10.5' height='14' fill='white' transform='translate(0.5)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.toplist-poker-compact__offer-games-all-list {
    position: absolute;
    z-index: 10;
    top: 27px;
    right: -69px;
    display: flex;
    flex-wrap: wrap;
    width: 280px;
    padding: 12px 16px;
    border-radius: 4px;
    background: #FFF;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14), 0 8px 32px 0 rgba(0, 0, 0, 0.10);
}

.toplist-poker-compact__offer-games-all-list.visible {
    display: flex !important;
}

.toplist-poker-compact__offer-games-all-list:before {
    position: absolute;
    right: calc(50% - 4px);
    bottom: 100%;
    margin-left: -8px;
    content: '';
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #FFF transparent;
    border-top-width: 0;
}

.toplist-poker-compact__offer-game-all {
    display: flex;
    align-items: center;
    width: 50%;
    min-height: 40px;
    padding: 8px 6px;
    border-radius: 2px;
    background: #FFF;
    gap: 8px;
}

.toplist-poker-compact__offer-game-all-darken {
    opacity: 40%;
}

.toplist-poker-compact__offer-game-all-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.toplist-poker-compact__offer-game-all-name {
    font-family: "Lato", sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: normal;
    line-height: 120%;
    display: -webkit-box;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    text-overflow: ellipsis;
    color: #060606;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.toplist-poker-compact__show-more-btn {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 50px;
    margin: 16px auto 0;
    padding: 0 16px;
    color: #060606;
    border: 2px solid #060606;
    border-radius: 7px;
    gap: 8px;
}

.toplist-poker-compact__show-more-btn:hover {
    cursor: pointer;
    color: #FFFFFF;
    background: #060606;
}

.toplist-poker-compact__show-more-btn:hover svg path {
    stroke: #FFFFFF;
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-wrapper {
    padding: 4px 0;
    border-radius: 2px;
    background: #5B7F24;
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-inner {
    border-top: unset;
    border-bottom: unset;
    border-radius: 0;
    background: #060606;
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-brand-name {
    color: #BFBFBF;
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-title,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-title p,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-key-features li,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-rakeback,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-rakeback span,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-rating,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-game,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-review-btn {
    color: #FFF;
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-rakeback {
    background: #21242E;
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-key-features li {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12' fill='none'%3E%3Cpath d='M7.14216 3.40769C6.3295 2.41019 5.63635 1.32102 5.07687 0.162402C5.04936 0.115078 5.00991 0.0758032 4.96247 0.0485035C4.91502 0.0212039 4.86124 0.00683594 4.8065 0.00683594C4.75177 0.00683594 4.69799 0.0212039 4.65054 0.0485035C4.6031 0.0758032 4.56365 0.115078 4.53614 0.162402C3.97659 1.32071 3.28345 2.40957 2.47085 3.40679C1.76587 4.27128 0.97506 5.06209 0.110561 5.76707C0.0760127 5.79525 0.0481672 5.83075 0.0290441 5.87102C0.00992112 5.91129 0 5.95531 0 5.99989C0 6.04447 0.00992112 6.08849 0.0290441 6.12875C0.0481672 6.16902 0.0760127 6.20453 0.110561 6.2327C0.97506 6.93769 1.76587 7.72849 2.47085 8.59299C3.28345 9.59021 3.97659 10.6791 4.53614 11.8374C4.56074 11.8882 4.59915 11.931 4.64696 11.961C4.69478 11.9909 4.75007 12.0068 4.8065 12.0068C4.86294 12.0068 4.91823 11.9909 4.96605 11.961C5.01386 11.931 5.05227 11.8882 5.07687 11.8374C6.12408 9.66751 7.63482 7.75396 9.50245 6.2318C9.537 6.20363 9.56484 6.16812 9.58396 6.12785C9.60309 6.08758 9.61301 6.04356 9.61301 5.99899C9.61301 5.95441 9.60309 5.91039 9.58396 5.87012C9.56484 5.82985 9.537 5.79434 9.50245 5.76617C8.63804 5.06176 7.84724 4.27156 7.14216 3.40769Z' fill='white'/%3E%3C/svg%3E");
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-games-subtitle,
.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-games-subtitle span {
    color: #BFBFBF;
}

.toplist-poker-compact__offer-dark .toplist-poker-compact__offer-label {
    top: 7px;
}

@media screen and (min-width: 992px) {
    .toplist-poker-compact__offer-logo-inner {
        background: unset !important;
    }

    .toplist-poker-compact__offer-games-subtitle span:after {
        display: none;
    }

    .toplist-poker-compact__offer-games-subtitle:hover + .toplist-poker-compact__offer-games-all-list {
        display: flex !important;
    }
}

@media screen and (max-width: 991px) {
    .toplist-poker-compact__wrapper {
        margin: 24px 0;
    }

    .toplist-poker-compact__offer-inner {
        padding: 14px;
        gap: 12px;
        grid-template-columns: auto;
        grid-template-rows: 106px auto;
        grid-template-areas:
        "logo"
        "head"
        "extra"
        "body";
    }

    .toplist-poker-compact__offer-logo-wrapper {
        margin: -14px -14px 0 -14px;
    }

    .toplist-poker-compact__offer-logo {
        background: unset !important;
    }

    .toplist-poker-compact__offer-logo-inner {
        justify-content: flex-start;
        background: linear-gradient(90deg, #0D0D0E 62%, rgba(0, 0, 0, 0.00) 100%);
    }

    .toplist-poker-compact__offer-logo img {
        width: 180px;
        height: 86px;
    }

    .toplist-poker-compact__offer-background {
        right: 0;
        bottom: 0;
        width: auto;
    }

    .toplist-poker-compact__offer-background img {
        width: 140px;
        height: 120px;
        object-fit: cover;
    }

    .toplist-poker-compact__offer-brand-name {
        margin-bottom: 12px;
    }

    .toplist-poker-compact__offer-body {
        margin-right: 0;
        padding-top: 0;
        gap: 12px;
    }

    .toplist-poker-compact__offer-key-features li {
        font-size: 14px;
    }

    .toplist-poker-compact__offer-extra {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 16px;
    }

    .toplist-poker-compact__offer-extra > div {
        order: 2;
        width: calc(100% / 3 - (16px * 2 / 3));
    }

    .toplist-poker-compact__offer-rating-review-wrapper {
        align-items: center;
        flex-direction: column;
        gap: 0;
    }

    .toplist-poker-compact__offer-rakeback {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .toplist-poker-compact__offer-rakeback span {
        font-size: 18px;
        line-height: 140%;
        text-align: center;
    }

    .toplist-poker-compact__offer-cta-btn {
        order: 1;
    }

    .toplist-poker-compact__offer-games-wrapper {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .toplist-poker-compact__offer-games-wrapper span {
        font-size: 18px;
        line-height: 140%;
        position: relative;
        display: block;
        width: fit-content;
        padding-right: 15px;
    }

    .toplist-poker-compact__offer-games-subtitle span:after {
        top: 5px;
    }

    .toplist-poker-compact__offer-games-subtitle {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-right: 0;
    }

    .toplist-poker-compact__offer-games-all-list {
        top: 36px;
        right: 0;
        width: calc(100vw - 60px);
    }

    .toplist-poker-compact__offer-games-all-list:before {
        right: 41px;
    }

    .toplist-poker-compact__offer-games-subtitle:focus + .toplist-poker-compact__offer-games-all-list {
        display: flex !important;
    }

    .toplist-poker-compact__offer-games-subtitle:after {
        display: none;
    }

    .toplist-poker-compact__offer-dark .toplist-poker-compact__offer-games-subtitle span {
        color: #FFF;
    }

    .toplist-poker-compact__offer-dark .toplist-poker-compact__offer-rakeback {
        color: #BFBFBF;
    }
}
